//回到顶部
var id;
function returnTop() {
	id = setInterval('goTop()', 10);
}

function goTop() {
	scrollBy(0, -50);
	
	var scrollTop = document.documentElement.scrollTop + document.body.scrollTop;
	
	if (scrollTop == 0) {
		clearInterval(id);
	}
}
	
//滚动到一定距离出现returnTop	
window.onscroll = function(){
	var scrollTop = document.documentElement.scrollTop + document.body.scrollTop;
	
	var TopBar = document.getElementById('fixed-bar');
	
	if(scrollTop >= 150){
		TopBar.style.display = 'block';
	}else{
		TopBar.style.display = 'none';
	}
}


var lagouWeibo = document.getElementById('lagou-weibo');
var weibo = document.getElementById('weibo');
var lagouWeixin = document.getElementById('lagou-weixin');
var weixin = document.getElementById('weixin');

lagouWeibo.onmouseover = function(){
	weibo.style.display = 'block';
}

weibo.onmouseover = function(){
	weibo.style.display = 'block';
}

weibo.onmouseout = function(){
	weibo.style.display = 'none';
}

lagouWeibo.onmouseout = function(){
	weibo.style.display = 'none';
}

lagouWeixin.onmouseover = function(){
	weixin.style.display = 'block';
}

lagouWeixin.onmouseout = function(){
	weixin.style.display = 'none';
}


weixin.onmouseover = function(){
	weixin.style.display = 'block';
}

weixin.onmouseout = function(){
	weixin.style.display = 'none';
}
